-
Notifications
You must be signed in to change notification settings - Fork 160
generate: update rootfs releated options #254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generate: update rootfs releated options #254
Conversation
| cli.StringFlag{Name: "rootfs", Value: "rootfs", Usage: "path to the rootfs"}, | ||
| cli.StringFlag{Name: "rootfs-path", Value: "rootfs", Usage: "path to the rootfs"}, | ||
| cli.StringFlag{Name: "rootfs-propagation", Usage: "mount propagation for rootfs"}, | ||
| cli.BoolFlag{Name: "rootfs-readonly", Usage: "make the container's rootfs readonly"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The config.json property is root, so I'd prefer sticking to root instead of switching to rootfs. Other than that these changes look good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. Then, let's see what's other people's opinions?
man/oci-runtime-tool-generate.1.md
Outdated
| **--rootfs-readonly**=true|false | ||
| Mount the container's root filesystem as read only. | ||
|
|
||
| By default a container will have its root filesystem writable allowing processes to write files anywhere. By specifying the `--read-only` flag the container will have its root filesystem mounted as read only prohibiting any writes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This --read-only instance is stale.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed, thanks.
1a27740 to
b4b41f9
Compare
Signed-off-by: Ma Shimiao <[email protected]>
b4b41f9 to
d0d4f2d
Compare
|
LGTM |
|
ping @opencontainers/runtime-tools-maintainers |
|
@mrunalp Needs your re-LGTM. |
Adjusting a --rootfs instance that was missed in d0d4f2d (generate: update rootfs releated options, 2016-10-21, opencontainers#254). Signed-off-by: W. Trevor King <[email protected]>
Signed-off-by: Ma Shimiao [email protected]
After updated, options of rootfs will be more human-readable and easy to understand